<style>
    body {
        background: #f5f5f5;
    }
</style>
<div class="sectionY">
    <a href="javascript:history.back()">
        <img src="__PUBLIC__/home/images/a4.png" class="a1" alt="">
    </a>
    <p class="p1">订单支付</p>
</div>
<div class="kong1"></div>
<div class="pay_section2">
    <form action="">
        <div class="f1 clearfix">
            <p class="p1">支付金额</p>
            <p class="p2">{$info.money} SCB</p>
        </div>
        <div class="f2 clearfix">
            <p class="p1">支付方式</p>
            <div class="ab clearfix">
                <div class="left">
                    <img src="__PUBLIC__/home/images/a19.png" alt="">
                    <span class="s1">SCB</span>
                </div>
                <div class="right">
                    <p class="p1">可用余额：{$user.mybot}</p>
                </div>
            </div>
        </div>
        <div class="sub">
            <button class="b1" type="button" id="payBtn">确认支付</button>
        </div>
    </form>
</div>

<script>
    $(function(){
        $("#payBtn").click(function () {
            var order_id = "{$info.id}";
            modal.ajax("",{order_id:order_id,pay_type:2},function (res) {
                if(res.result_code==0){
                        //余额
                        window.location.replace("{:url('Order/paySuccess')}");
                }else{
                    modal.msg(res.result_info);
                }
            });
        });
    })
</script>